<?php


class Hello_world_module extends CI_Module {
	
	public function init($config =array()) {
		
	}
	
	public function active() {
		
	}
	
	public function deactive() {
		
	}
	
	public function test() {
		echo "Test Hello_world_module module";
	}
	
	public function module_update($data) {
		return $data;
	}
	
	public function admin($config) {
		//$data = (array) $wiget;
		//$config = json_decode($wiget->MPOS_CONFIG, true);
		//if ($config) 
		//$data = array_merge($data, $config);
		echo $this->view('admin', $config['config']);
	}
	
	/**
	 * 
	 * @param object $config
	 * 
	 */
	public function run($config = array()) {
		//$this->view('index', $config);
		echo 'function run <br>';
	}
	
	public function plusAction($param) {
		echo $param[0] + $param[1];
	}
	public function abc($param= array()) {
		echo 'function abc <br>';
	}
	
	public function xyz($param1, $param2, $param3, $param4) {
		echo 'function xyz <br>';
		print_r($param1);
		print_r($param2);
		print_r($param3);
		print_r($param4);
	}
	
}